<template>
  <svg class="icon" aria-hidden="true">
    <use :xlink:href="icon"></use>
  </svg>
</template>
<script>
import '@/assets/fonts/iconfonts'
export default {
  name: "index",
  props: {
    name: ''
  },
  data() {
    return {}
  },
  computed: {
    icon() {
      return `#icon-${this.name}`
    }
  },
  methods: {},
  created() {
  },
  watch: {}
}
</script>

<style scoped lang="scss">
.icon {
  width: 16px;
  height: 16px;
}
</style>
